/*  ---- TASK 1 -----
 *  Learning goals:
 *    - Using the debugger
 *    - Stepping through code
 *    - Using the register view
 *    - Reading the datasheet
 */

#include <avr/io.h>

#define LED_PORT PORTB
#define LED_DDR  DDRB

int main( void ) {
	LED_DDR = 0b00001111;               // Page 73 of the Datasheet


	unsigned char leds = 0;
	while (1) {
		leds++;
		leds %= 16; 

		LED_PORT = (~leds & 0b00001111);  // What happens here?
	}
}
